<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1">
    <meta http-equiv="X-UA-Compatible" content="ie=edge">

    <title>bootstrap表单</title>
    <script src="https://cdn.bootcss.com/jquery/1.11.3/jquery.min.js"></script>
    <link href="https://cdn.bootcss.com/bootstrap/3.3.7/css/bootstrap.min.css" rel="stylesheet">
    <link href="main2.css" rel="stylesheet">
</head>

<body>
<!--bootstrap容器-->
<form class="container container-small">
    <h1>注册</h1>
    <!--form-inline内联表单 form-group单行表单-->
    <div class="form-inline form-group">
        <!--form-group表单组 has-error表单验证错误样式-->
        <div class="form-group has-error">
            <!--control-label控件标签-->
            <label class="control-label">姓</label>
            <!--form-control表单控件 input-lg大输入框-->
            <input type="text" class="form-control input-lg">
        </div>
        <!--form-group表单组 has-error表单验证成功样式-->
        <div class="form-group has-success">
            <!--control-label控件标签-->
            <label class="control-label">名</label>
            <!--form-control表单控件 input-lg大输入框-->
            <input type="text" class="form-control input-sm">
        </div>
    </div>
    <!--form-group表单组-->
    <div class="form-group">
        <label>充值金额</label>
        <div class="input-group">
            <div class="input-group-addon">￥</div>
            <input type="text" class="form-control">
        </div>
    </div>
    <!--form-group表单 has-error表单验证警告样式-->
    <div class="form-group has-warning">
        <!--control-label控件标签-->
        <label class="control-label">来自</label>
        <!--选择控件-->
        <select class="form-control">
            <option value="1">一村</option>
            <option value="2">二村</option>
        </select>
    </div>

    <!--row列 并列三个输入框-->
    <div class="row">
        <!--bootstrap小设备元素-->
        <div class="col-sm-4">
            <!--输入框控件 提示为XXXXX-->
            <input type="text" class="form-control" placeholder="XXXXX">
        </div>
        <div class="col-sm-4">
            <input type="text" class="form-control">
        </div>
        <div class="col-sm-4">
            <input type="text" class="form-control">
        </div>
    </div>
</form>

</body>
</html>

